﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RedDragon.Common.Domain.Supplier
{
    /// <summary>
    /// 营业执照表
    /// </summary>
    public class BusinessLicenses
    {
        /// <summary>
        /// 序号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]//IsPrimaryKey 主键 IsIdentity 自增
        public int BusinessId { get; set; }

        /// <summary>
        /// 营业执照号
        /// </summary>
        [SugarColumn(ColumnDataType = "NVarchar(200)")]//设置长度
        public string BusinessLicenseNumber { get; set; }

        /// <summary>
        /// 法人代表
        /// </summary>
        [SugarColumn(ColumnDataType = "NVarchar(50)")]//设置长度
        public string LegalPerson { get; set; }

        /// <summary>
        /// 公司类型序号(外键)
        /// </summary>
        public int CompanyTypeId { get; set; }

        /// <summary>
        /// 经营范围
        /// </summary>
        [SugarColumn(ColumnDataType = "NVarchar(200)")]//设置长度
        public string BusinessScope { get; set; }

        /// <summary>
        /// 成立日期
        /// </summary>
        public DateTime SetupDate { get; set; }

        /// <summary>
        /// 营业执照状态 1-有效 2-无效
        /// </summary>
        public int BusinessStatus { get; set; }

        /// <summary>
        /// 供应商编码(外键)
        /// </summary>
        [SugarColumn(ColumnDataType = "NVarchar(200)")]//设置长度
        public string SupplierCoding { get; set; }
    }
}
